<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
.popForm .formitm {padding: 10px 0 0;line-height: 30px;width: 391px;float: left;}
.popForm .formitm ul{float:left;width:650px; margin-left:153px;}
.popForm .formitm ul li{float:left; margin-right:25px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">
        
    	<div class="formitm">
		     <label class="lab">红包名称：</label>
		     <div class="ipt">
		     	${redEnvelope.name!}
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">是否启用：</label>
		     <div class="ipt">
		     	<#if redEnvelope.status == 1>
		     		启用
		     	<#elseif redEnvelope.status == 0>
		     		不启用
		     	</#if>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">红包类型：</label>
		     <div class="ipt">
		     	${redEnvelope.typeStr!}
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">发放方式：</label>
		     <div class="ipt">
		     	${redEnvelope.payTypeStr!}
		     </div>
		</div>
		
		<#if redEnvelope.payType == 1>
		<div class="formitm">
		     <label class="lab">红包金额：</label>
		     <div class="ipt">
		     	${redEnvelope.amount!}元
		     </div>
		</div>
		</#if>
		
		<#if redEnvelope.payType == 2>
		<div class="formitm">
		     <label class="lab">金额比率：</label>
		     <div class="ipt">
		     	${redEnvelope.rate!}%
		     </div>
		</div>
		</#if>
		
		<div class="formitm">
		     <label class="lab">有效期：</label>
		     <div class="ipt">
		     	<#if redEnvelope.validDay gt 0>${redEnvelope.validDay!}天<#else>长期有效</#if>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">红包总数：</label>
		     <div class="ipt">
		     	<#if redEnvelope.total gt 0>${redEnvelope.total!}个<#else>不限</#if>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">已发放数量：</label>
		     <div class="ipt">
		     	${redEnvelope.lssueNum!0}个
		     </div>
		</div>
		<#if redEnvelope.payType !=1 && redEnvelope.payType !=3>
		<div class="formitm">
			<label class="lab">最小金额：</label>
			<div class="ipt">${redEnvelope.minAmount!}元</div>
		</div>
		<div class="formitm">
		     <label class="lab">最大金额：</label>
		     <div class="ipt">
		     	${redEnvelope.maxAmount!}元
		     </div>
		</div>
		</#if>
		
		 <#if redEnvelope.payType == 3 && attachedList?? && attachedList?size gt 0>
		<div class="formitm" style="clear:both;">
		     <label class="lab">金额区间：</label>
		     <#list attachedList as item>
				<ul class="sectionRateList">
				<li>
					起始值：${item.min!0}元
				</li>
				<li>结束值：${item.max!0}元
				</li>
				<li>红包金额：${item.amount!0}元
				</li>
			</ul>
			</#list>
		</div>
		</#if>
		
		<#if redEnvelope.payType == 4 && attachedList?? && attachedList?size gt 0>
		<div class="formitm" style="clear:both;">
		     <label class="lab">金额区间：</label>
		     <#list attachedList as item>
				<ul class="sectionRateList">
				<li>起始值：${item.min!0}元
				</li>
				<li>结束值：${item.max!0}元
				</li>
				<li>红包比率：${item.rate!0}%
				</li>
			</ul>
			</#list>
		</div>
		</#if>
		
		<div class="formitm" style="clear:both;">
		     <label class="lab">红包描述：</label>
		     <div class="ipt">
		     	${redEnvelope.description!}
		     </div>
		  </div>
	</form>
</div>

